#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2014-11-05 14:09:29
# @Author  : Your Name (you@example.org)
# @Link    : http://example.org
# @Version : $Id$


# from tornado.web import UIModule
# from models.product import ProductType
# from models.support import SupportType

# class CatalogModule(UIModule):
#     def render(self):
#         try:
#             cid = int(self.request.arguments['cid'][0])
#         except Exception, e:
#             cid = 0
#         catalog = ProductType.select()
#         hotitem = []
#         return self.render_string('widget/catalog.html', catalog=catalog, bestsell=hotitem, cid=cid)

# class SupportCatalogModule(UIModule):
#     def render(self):
#         catalog = SupportType.select()
#         return self.render_string('widget/support_catalog.html', catalog=catalog)


# class PackageCatalogModule(UIModule):
#     def render(self):
#         return self.render_string('widget/package_catalog.html',)